package com.lei.retrofitfactory_one.http.api;

import com.lei.retrofitfactory_one.http.bean.TokenBean;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * @ProjectName : YoHuo001Java
 * @Author : 雷金泷
 * @Time : 2020/12/27 19:25
 * @Description : 文件描述
 */
public interface API {
    @FormUrlEncoded
    @POST("token")
    Call<TokenBean> token(@Field("grant_type") String type, @Field("username") String username, @Field("pwd") String pwd);

}
